package com.zsrt.java.day20161223.cg.demo04;
/**
 * do while ������ִ��һ��
 */
import org.junit.Test;

public class WhileDemo01 {
	@Test
	public void whileDoWhile01(){
		int begin = 1;
		int end = 10;
		int sum = 0;
		do {
			sum = sum + begin;
			begin++;
		} while (begin < end);
	}
}
